package com.study.talk.module.netty.message.response;

import com.study.talk.module.netty.message.MessageType;
import com.study.talk.module.netty.message.TalkMessage;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *   群聊消息响应
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GroupMessageResponse extends TalkMessage {

    @ApiModelProperty("发送人id")
    private Integer sendUserId;

    @ApiModelProperty("发送人姓名")
    private String sendUserName;

    @ApiModelProperty("发送人昵称")
    private String sendUserNickName;

    @ApiModelProperty("发送人头像")
    private String avatar;

    @ApiModelProperty("群聊id")
    private Integer groupId;

    @ApiModelProperty("消息内容")
    private String content;

    @ApiModelProperty("消息类型")
    private Integer messageType;

    @Override
    public byte getType() {
        return MessageType.GROUP_MESSAGE_RESPONSE;
    }
}
